package com.txts.road.admin.vehicleSys.service.impl;

import com.txts.road.admin.vehicleSys.domain.raceVehicle;
import com.txts.road.admin.vehicleSys.mapper.raceVehicleMapper;
import com.txts.road.admin.vehicleSys.service.IraceVehicleService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 参赛车辆Service业务层处理
 *
 * @author ruoyi
 * @date 2025-05-15
 */
@Service
public class raceVehicleServiceImpl implements IraceVehicleService
{
    @Resource
    private raceVehicleMapper raceVehicleMapper;

    /**
     * 查询参赛车辆
     *
     * @param id 参赛车辆主键
     * @return 参赛车辆
     */
    @Override
    public raceVehicle selectraceVehicleById(Long id)
    {
        return raceVehicleMapper.selectraceVehicleById(id);
    }

    /**
     * 查询参赛车辆列表
     *
     * @param raceVehicle 参赛车辆
     * @return 参赛车辆
     */
    @Override
    public List<raceVehicle> selectraceVehicleList(raceVehicle raceVehicle)
    {
        return raceVehicleMapper.selectraceVehicleList(raceVehicle);
    }

    /**
     * 新增参赛车辆
     *
     * @param raceVehicle 参赛车辆
     * @return 结果
     */
    @Override
    public int insertraceVehicle(raceVehicle raceVehicle)
    {
        return raceVehicleMapper.insertraceVehicle(raceVehicle);
    }

    /**
     * 修改参赛车辆
     *
     * @param raceVehicle 参赛车辆
     * @return 结果
     */
    @Override
    public int updateraceVehicle(raceVehicle raceVehicle)
    {
        return raceVehicleMapper.updateraceVehicle(raceVehicle);
    }

    /**
     * 批量删除参赛车辆
     *
     * @param ids 需要删除的参赛车辆主键
     * @return 结果
     */
    @Override
    public int deleteraceVehicleByIds(Long[] ids)
    {
        return raceVehicleMapper.deleteraceVehicleByIds(ids);
    }

    /**
     * 删除参赛车辆信息
     *
     * @param id 参赛车辆主键
     * @return 结果
     */
    @Override
    public int deleteraceVehicleById(Long id)
    {
        return raceVehicleMapper.deleteraceVehicleById(id);
    }
}
